package QC.MessageBox.beans.dto;

import com.google.common.base.MoreObjects;

/**
 * Created by Andaren on 2017/5/26.
 * Used for: 最近联系粉丝
 */
public class RecentContactFans {

    private String openId;

    private String developerId;

    private String pubName;

    private String content;

    private Long lastActTimestamp;

    private Long lastSendTime;

    /**
     * 该字段用于判断Web粉丝在线状态
     * 如果粉丝该值为0则：不在线
     * 如果粉丝该值大于0则：在线
     */
    private Integer limitText;      // 限制发送文本消息的条数

    public String getOpenId() {
        return openId;
    }

    public RecentContactFans setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public String getContent() {
        return content;
    }

    public RecentContactFans setContent(String content) {
        this.content = content;
        return this;
    }

    public Long getLastActTimestamp() {
        return lastActTimestamp;
    }

    public RecentContactFans setLastActTimestamp(Long lastActTimestamp) {
        this.lastActTimestamp = lastActTimestamp;
        return this;
    }

    public Long getLastSendTime() {
        return lastSendTime;
    }

    public RecentContactFans setLastSendTime(Long lastSendTime) {
        this.lastSendTime = lastSendTime;
        return this;
    }

    public String getDeveloperId() {
        return developerId;
    }

    public RecentContactFans setDeveloperId(String developerId) {
        this.developerId = developerId;
        return this;
    }

    public String getPubName() {
        return pubName;
    }

    public RecentContactFans setPubName(String pubName) {
        this.pubName = pubName;
        return this;
    }

    public Integer getLimitText() {
        return limitText;
    }

    public RecentContactFans setLimitText(Integer limitText) {
        this.limitText = limitText;
        return this;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("openId", openId)
                .add("developerId", developerId)
                .add("pubName", pubName)
                .add("content", content)
                .add("lastActTimestamp", lastActTimestamp)
                .add("lastSendTime", lastSendTime)
                .add("limitText", limitText)
                .toString();
    }
}
